//
//  LXDrivingLocationItem.m
//  duoduo
//
//  Created by wanghao on 16/10/13.
//  Copyright © 2016年 LX. All rights reserved.
//

#import "LXDrivingLocationItem.h"
#import "UIViewExt.h"

@interface LXDrivingLocationItem ()
{
    UIActivityIndicatorView *activityIndicatorView_;
    UILabel *lb_;
    UIButton *back_;
}

@end

@implementation LXDrivingLocationItem

/**
 *  初始化
 */

-(id)initWithTheFram:(CGRect)fram backImage:(NSString *)image
{

    if (self = [super init]) {
        self.frame = fram;
        self.backgroundColor = [UIColor clearColor];

        UIButton * backBtn = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, self.width, self.height)];
        backBtn.backgroundColor = LXHexColor(0x2EBDF6);
        back_ = backBtn;
        backBtn.alpha = 0.8;
        
        [self addSubview:backBtn];

        UIImageView * imageView = [[UIImageView alloc]initWithFrame:CGRectMake(backBtn.frame.size.width/2-8, backBtn.frame.size.height, 16, 8)];
        imageView.image = [UIImage imageNamed:@"jiao1"];
        [self addSubview:imageView];
        imageView.alpha = 0.8;
        [self addSubview:backBtn];
        
    }
    return self;
}

@end
